#
# Makefile
# Makefile for creating the SDK headers for the Protea Project
# Copyright (C) 2008 Bruce A. James
#
# This file is part of the Protea Project.
#
# The Protea Project is free software; you can redistribute it and/or modify it 
# under the terms of the GNU General Public License as published by the 
# Free Software Foundation, either version 3 of the License, or (at your 
# option) any later version.
#
# The Protea Project is distributed in the hope that it will be useful, but 
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
# for more details.
# 
# You should have received a copy of the GNU General Public License along 
# with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Please send correspondence to:
#
# theproteaproject@gmail.com
#

HEADERS = OS_LINUX.h OS_UNIX.h \
appdic.h AppInterface.h Buffer.h fields.h defines.h stacktrace.h \
Database.h DBInterface.h pipes.h process.h files.h dir.h socket.h \
message.h shlib.h port.h transport.h security.h misc.h xmldefn.h \
errorhandler.h Transactions.h printoutput.h memwatch.h transreg.h \
version.h OS_defines.h entry.h utf8.h licensing.h

 FIXPROG = ./incfix

all : SDKDate

clean:
	-rm $(HEADERS)
	-rm $(FIXPROG)

depend:
	@echo "Dependencies are now up to date"

explain:

SDKDate: $(FIXPROG) $(HEADERS)
	touch SDKDate

incfix: incfix.cpp
	g++ incfix.cpp -o incfix -lc -lgcc

OS_CYGWIN.h: ../OSDep/OS_CYGWIN.h $(FIXPROG)
	$(FIXPROG) ../OSDep/OS_CYGWIN.h OS_CYGWIN.h

OS_LINUX.h: ../OSDep/OS_LINUX.h $(FIXPROG)
	$(FIXPROG) ../OSDep/OS_LINUX.h OS_LINUX.h

OS_UNIX.h: ../OSDep/OS_UNIX.h $(FIXPROG)
	$(FIXPROG) ../OSDep/OS_UNIX.h OS_UNIX.h

memwatch.h: ../memwatch.h $(FIXPROG)
	$(FIXPROG) ../memwatch.h memwatch.h

appdic.h: ../Appdic/appdic.h $(FIXPROG)
	$(FIXPROG) ../Appdic/appdic.h appdic.h

AppInterface.h: ../AppHandler/AppInterface.h $(FIXPROG)
	$(FIXPROG) ../AppHandler/AppInterface.h AppInterface.h

message.h: ../AppHandler/message.h $(FIXPROG)
	$(FIXPROG) ../AppHandler/message.h message.h

security.h: ../AppHandler/security.h $(FIXPROG)
	$(FIXPROG) ../AppHandler/security.h security.h

printoutput.h: ../AppHandler/printoutput.h $(FIXPROG)
	$(FIXPROG) ../AppHandler/printoutput.h printoutput.h

Buffer.h: ../Buffer/Buffer.h $(FIXPROG)
	$(FIXPROG) ../Buffer/Buffer.h Buffer.h

fields.h: ../Fields/fields.h $(FIXPROG)
	$(FIXPROG) ../Fields/fields.h fields.h

defines.h: ../defines.h $(FIXPROG)
	$(FIXPROG) ../defines.h defines.h

OS_defines.h: ../OS_defines.h $(FIXPROG)
	$(FIXPROG) ../OS_defines.h OS_defines.h

stacktrace.h: ../stacktrace.h $(FIXPROG)
	$(FIXPROG) ../stacktrace.h stacktrace.h

Database.h: ../Database/Database.h $(FIXPROG)
	$(FIXPROG) ../Database/Database.h Database.h

DBInterface.h: ../Database/DBInterface.h $(FIXPROG)
	$(FIXPROG) ../Database/DBInterface.h DBInterface.h

pipes.h: ../OSDep/pipes.h $(FIXPROG)
	$(FIXPROG) ../OSDep/pipes.h pipes.h

process.h: ../OSDep/process.h $(FIXPROG)
	$(FIXPROG) ../OSDep/process.h process.h

files.h: ../OSDep/files.h $(FIXPROG)
	$(FIXPROG) ../OSDep/files.h files.h

dir.h: ../OSDep/dir.h $(FIXPROG)
	$(FIXPROG) ../OSDep/dir.h dir.h

socket.h: ../OSDep/socket.h $(FIXPROG)
	$(FIXPROG) ../OSDep/socket.h socket.h

shlib.h: ../OSDep/shlib.h $(FIXPROG)
	$(FIXPROG) ../OSDep/shlib.h shlib.h

port.h: ../OSDep/port.h $(FIXPROG)
	$(FIXPROG) ../OSDep/port.h port.h

transport.h: ../OSDep/transport.h $(FIXPROG)
	$(FIXPROG) ../OSDep/transport.h transport.h

misc.h: ../OSDep/misc.h $(FIXPROG)
	$(FIXPROG) ../OSDep/misc.h misc.h

xmldefn.h: ../AppHandler/xmldefn.h $(FIXPROG)
	$(FIXPROG) ../AppHandler/xmldefn.h xmldefn.h

errorhandler.h: ../errorhandler.h $(FIXPROG)
	$(FIXPROG) ../errorhandler.h errorhandler.h

Transactions.h: ../AppHandler/Transactions.h $(FIXPROG)
	$(FIXPROG) ../AppHandler/Transactions.h Transactions.h

transreg.h: ../AppHandler/transreg.h $(FIXPROG)
	$(FIXPROG) ../AppHandler/transreg.h transreg.h

version.h: ../version.h $(FIXPROG)
	$(FIXPROG) ../version.h version.h

entry.h: ../entry.h $(FIXPROG)
	$(FIXPROG) ../entry.h entry.h

utf8.h: ../OSDep/utf8.h $(FIXPROG)
	$(FIXPROG) ../OSDep/utf8.h utf8.h

licensing.h: ../licensing.h $(FIXPROG)
	$(FIXPROG) ../licensing.h licensing.h
	
